package com.fanyue.modules.face.entity;

import com.fanyue.core.base.BaseEntity;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Table;
import com.tangzc.mybatisflex.autotable.annotation.ColumnDefine;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@Table(value = "wzb_app_user", comment = "人员信息表")
public class AppUser extends BaseEntity<AppUser> {
    //人员类型，0-普通，1-vip（存在私有服装），9-管理员（批量操作）
    @ColumnDefine(comment = "人员类型")
    private Integer type;

    @ColumnDefine(comment = "姓名", length = 100)
    private String name;

    @ColumnDefine(comment = "头像")
    private String headImage;

    @ColumnDefine(comment = "身份证号")
    private String uid;

    @ColumnDefine(comment = "性别", defaultValue = "0")
    private Integer sex;

    @ColumnDefine(comment = "联系电话")
    private String mobile;

    @ColumnDefine(comment = "人脸id")
    private Long faceId;

    @ColumnDefine(comment = "尺码")
    private Integer size;

    @ColumnDefine(comment = "部门ID")
    private Long departmentId;

    @ColumnDefine(comment = "状态 0:禁用 1：启用", defaultValue = "1")
    private Integer status;

    // 部门名称
    @Column(ignore = true)
    private String departmentName;

}
